package com.liu.dao;

import com.liu.pojo.User;

import java.sql.SQLException;

/**
 * @Author 老刘Matthew
 * @Timestamp 2022/7/14 18:11
 * @Description
 */
public interface IUserDao extends IGenericDao<User> {
    // 查询用户
    public User queryByUsername(String username) throws SQLException;

    //修改密码
    Integer updatePassword(User user) throws SQLException;

    //修改头像
    Integer updatePhoto(String photo, Integer user_id) throws SQLException;

    //查询头像
    String queryPhoto(Integer user_id) throws SQLException;

}
